package com.wkq.util;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class Date_Util {

    //    日期转换成字符串
    public static String dateToString(Date date, String patt) {
        String dateString = DateUtil.format(date, patt);
        return dateString;
    }

    //    字符串转换成日期
    public static Date stringToDate(String dateString) {
        Date date = DateUtil.parse(dateString);
        return date;
    }

}
